
#ifndef _XSIMPLESTACK_H_
#define _XSIMPLESTACK_H_

#include "xtypes.h"

typedef struct {
	int_t *buf;
	int_t size;
	int_t top;
	int_t unused;
}stack_t, *pstack_t;


xResult xStack_Clear( pstack_t _Stack );
xResult xStack_Push( pstack_t _Stack, int_t _Val );
xResult xStack_Pop( pstack_t _Stack );
int_t xStack_GetTop( pstack_t _Stack );
bool_t xStack_IsEmpty( pstack_t _Stack );

pstack_t xStack_Create( int_t _Size );
xResult xStack_Release( pstack_t _Stack );
xResult xStack_Resize( pstack_t _Stack, int_t _NewSize );


#endif //_XSIMPLESTACK_H_

